import { IsNotEmpty, IsOptional } from 'class-validator';
import { IntersectionType } from '@nestjs/mapped-types';
import { PageSize } from '../../dto/all-dto';

export class FindValueSpecDto extends IntersectionType(PageSize) {
  @IsOptional()
  value?: string;

  @IsNotEmpty()
  id: number;
}